package com.primeton.wh.mcenter.impl.client;

import com.primeton.wh.mcenter.impl.client.fallback.CoframeUserLoginClientFallback;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;


@FeignClient(value = "coframe", configuration = {FeignAutoConfiguration.class}, fallback = CoframeUserLoginClientFallback.class)
public interface CoframeUserLoginClient {
    @GetMapping({"/api/users/get/current-user"})
    public abstract Map<String, String> getLoginUser();
}
